﻿using Newtonsoft.Json;
using System;
using System.Text.Json.Serialization;

namespace ThresholdAssistant.DataContract.Models
{
    /// <summary>
    /// 授权的机器人设备信息
    /// </summary>
    [Serializable]
    public class RobotDeviceInfoModel
    {
        /// <summary>
        /// TOKEN是否使用
        /// </summary>
        [JsonProperty("token_used"), JsonPropertyName("token_used")]
        public bool TokenUsed { get; set; }

        /// <summary>
        /// 设备号
        /// </summary>
        [JsonProperty("device_no"), JsonPropertyName("device_no")]
        public string DeviceNo { get; set; }

        /// <summary>
        /// 设备心跳编号
        /// </summary>
        [JsonProperty("device_heart_no"), JsonPropertyName("device_heart_no")]
        public string DeviceHeartNo { get; set; }

        /// <summary>
        /// TOKEN刷新时间
        /// </summary>
        [JsonProperty("token_refresh_time"), JsonPropertyName("token_refresh_time")]
        public DateTime? TokenRefreshTime { get; set; }
    }
}